package cn.bone.ou.data.mapper;

import cn.bone.ou.data.bean.OpLogger;
import cn.bone.ou.data.dto.OpLoggerDto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OpLoggerMapper extends BaseMapper<OpLogger> {

    List<OpLoggerDto.ListDto> list(@Param("start")Integer start,
                                   @Param("num")Integer num,
                                   @Param("communityId")Integer communityId);

    int countList(@Param("communityId")Integer communityId);

    /**删除过期的数据*/
    int deleteExpire(@Param("time")Date time);
}
